﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SalesManage.aspx.cs" Inherits="Sales_SalesManage" %>

<%@ Register Src="../usercontrol/PageNavigator.ascx" TagName="PageNavigator" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../css/adminCss.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
    function CheckAll(form) {
	    for (var i=0;i<form.elements.length;i++) {
		    var e = form.elements[i];
		    if (e.name != 'chkall' && e.type=='checkbox')
			    e.checked = form.chkall.checked;
	    }
    }
    
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="31" height="22">
                    <img src="../images/module.gif" width="20" height="22" alt=""/></td>
                <td style="width: 232px">
                    <asp:Label ID="lblPath" runat="server" Text="Label"></asp:Label></td>
                <td width="990" align="right">
                   </td>
            </tr>
            <tr>
            <td colspan="3" align="right"><img src="../images/search.gif" alt="搜索" width="16" height="16" />编号：<asp:TextBox ID="txtCode"
                    runat="server" CssClass="input1"></asp:TextBox>品牌：<asp:TextBox ID="txtBrand" runat="server" CssClass="input1"></asp:TextBox>名称：<asp:TextBox
                        ID="txtContent" runat="server" CssClass="input1"></asp:TextBox>
                <asp:Label ID="lblWare" runat="server" Text="仓库："></asp:Label><asp:DropDownList
                            ID="ddlWare" runat="server">
                        </asp:DropDownList>
                    <asp:Button ID="btnSearch" runat="server" Text="搜索" CssClass="submit" OnClick="btnSearch_Click"  /></td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
        </table>
        <asp:GridView ID="GvData" runat="server" Width="99%" AutoGenerateColumns="False"
            CssClass="gridview" OnRowDataBound="GvData_RowDataBound" EmptyDataText="没有数据">
            <PagerSettings Visible="False" />
            <Columns>
            <asp:BoundField HeaderText="所属仓库" DataField="WarehouseName" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField HeaderText="编号" DataField="comodid" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
                <asp:BoundField HeaderText="品牌" DataField="Brand" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="商品名称" DataField="ComoditiesName" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                
                <asp:BoundField HeaderText="型号" DataField="Specifications" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
               
                
                <asp:BoundField HeaderText="条码" DataField="ComodBarcode" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
               
                  <asp:TemplateField HeaderText="售价(元)">
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text= '<%# Bind("SalesPrices","{0:f2}") %>'></asp:Label>
                    </ItemTemplate>
                      <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                
              
                <asp:BoundField HeaderText="库存数量" DataField="totalNum" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
              
                 <asp:BoundField HeaderText="单位" DataField="Units" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                
                
            </Columns>
            <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
        </asp:GridView>
        <table align="center">
        <tr><td><uc1:PageNavigator ID="PageNavigator1" runat="server" PageSize="15" ConnectionString="connstr" ShowType="Text" DataId="GvData" /></td></tr>
        </table>
        <asp:HiddenField ID="Hidid" runat="server" />
        <asp:HiddenField ID="HidWareid" runat="server" />
        
       
        
    </form>
</body>
</html>
